import _fetch from './request'
// import { getLocal } from '@/utils/local.js'

function auInfo () {
  return _fetch({
    url: '/au/info',
    // headers: { authorization: `Bearer ${getLocal('token')}` }请求头去拦截器设置
    needtoken: true
    // 这个是为了设置需要token时就要请求头
  })
}
function auEdit (data) {
  return _fetch({
    url: '/au/edit',
    methods: 'psot',
    needtoken: true,
    data
  })
}

export { auInfo, auEdit }
